﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Xoohoo.ModelValidation.Attributes
{
    public class EmailAttribute : ModelClientValidationRegularExpressionAttribute
    {
        public EmailAttribute() : base(@"^[a-zA-Z0-9!#$%&'*+\-/=?^_`{|}~]+(?:\.[a-zA-Z0-9!#$%&'*+\-/=?^_`{|}~]+)*@(?:[a-zA-Z0-9!#$%&'*+\-/=?^_`{|}~]+\.)+[a-zA-Z]+$") { }
       
    }
}
